import {DEVICE_DATA} from './api'
import {METHOD, request} from '@/utils/request'

export async function pushDeviceData(data) {
  return request(DEVICE_DATA + '/pushData', METHOD.POST, data)
}

export async function querySummary(data) {
  return request(DEVICE_DATA + '/querySummary', METHOD.GET, data)
}

export default {querySummary, pushDeviceData}